package com.pms.init.base;

import org.springframework.stereotype.Component;

import com.espirit.common.PPMessage;
import com.espirit.eap.pagelayout.DetailLayout;
@Component
public class PPMessageBuilder extends MessageBuilder {
	@Override
	public boolean init() {
		return super.setClass(PPMessage.class, "Personal Message", "个人消息") ;
	}
	
	@Override
	protected void afterBuilderLayout() {
		DetailLayout bs = model.getDefaultDetailLayout();
		bs.findSectionElement(FIELD_TO + ".id").setRequired(true);
		bs.findSectionElement(FIELD_TITLE).setRequired(true);
		super.afterBuilderLayout();
	}
}
